/*
 * @Author: your name
 * @Date: 2021-10-25 11:08:49
 * @LastEditTime: 2021-10-25 17:06:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /admin/src/api/cms/message.js
 */
import request from '@/utils/request'
export function getList(params) {
  return request({
    url: 'api/cmsmessage/pages',
    method: 'get',
    params,
  })
}
export function total(params) {
  return request({
    url: 'api/cmsmessage/total',
    method: 'get',
    params,
  })
}
export function add(data) {
  return request({
    url: 'api/cmsmessage',
    method: 'post',
    data,
  })
}
export function update(data) {
  return request({
    url: 'api/cmsmessage',
    method: 'put',
    data,
  })
}
export function read(data) {
  return request({
    url: 'api/cmsmessage/read',
    method: 'put',
    data,
  })
}
export function deletes(data) {
  return request({
    url: 'api/cmsmessage/' + data,
    method: 'delete',
  })
}
export function recycle(data) {
  return request({
    url: 'api/cmsmessage/recycle/' + data,
    method: 'delete',
  })
}
